import { axios } from '@/utils/request'

/**
 * 分页查询倾角上传日志
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function page (parameter) {
    return axios({
        url: '/wpUploadLog/page',
        method: 'get',
        params: parameter
    })
}

/**
 * 增加倾角上传日志
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function add (parameter) {
    return axios({
        url: '/wpUploadLog/add',
        method: 'post',
        data: parameter
    })
}

/**
 * 编辑倾角上传日志
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function edit (parameter) {
    return axios({
        url: '/wpUploadLog/edit',
        method: 'post',
        data: parameter
    })
}

/**
 * 查看详情倾角上传日志
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function detail (parameter) {
    return axios({
        url: '/wpUploadLog/detail',
        method: 'get',
        params: parameter
    })
}

/**
 * 删除倾角上传日志
 *
 * @author ssy
 * @date 2022/02/16 10:59
 */
export function del (parameter) {
  return axios({
    url: '/wpUploadLog/delete',
    method: 'post',
    data: parameter
  })
}

export function getNewOne (parameter) {
  return axios({
    url: '/wpUploadLog/getNewOne',
    method: 'get',
    params: parameter
  })
}

export function getDipUploadFrequency (parameter) {
  return axios({
    url: '/v2/api/getDipUploadFrequency',
    method: 'get',
    params: parameter
  })
}

export function uploadLogList (parameter) {
  return axios({
    url: '/wpUploadLog/list',
    method: 'get',
    params: parameter
  })
}

export function getTreeList (parameter) {
  return axios({
    url: '/index/getTreeList',
    method: 'get',
    params: parameter
  })
}
